package com.china.juju.entity;


import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name="juju_user_identity"
    ,catalog="zutuan_prot"
)
public class JujuUserIdentity  implements java.io.Serializable {

    private static final long serialVersionUID = 1L;

    public static final String ENTITY_NAME = "com.china.juju.entity.JujuUserIdentity";
	public static final String TABLE_NAME="juju_user_identity";

    public static final String PK_Field = "id"; 
    public static final String PK_Method = "getId";  
	
	public static final String P_id = "id"; 
	public static final String P_createtime = "createtime"; 
	public static final String P_realname = "realname"; 
	public static final String P_realcode = "realcode"; 
	public static final String P_realcard = "realcard"; 
	public static final String P_reallogo = "reallogo"; 
	public static final String P_realstatus = "realstatus"; 
	public static final String P_userid = "userid"; 

     private String id;
     private Date createtime;
     private String realname;
     private String realcode;
     private String realcard;
     private String reallogo;
     private Integer realstatus;
     private String userid;

    public JujuUserIdentity() {
    }
	
    public JujuUserIdentity(String id) {
        this.id = id;
    }
    public JujuUserIdentity(String id, Date createtime, String realname, String realcode, String realcard, String reallogo, Integer realstatus, String userid) {
        this.id = id;
        this.createtime = createtime;
        this.realname = realname;
        this.realcode = realcode;
        this.realcard = realcard;
        this.reallogo = reallogo;
        this.realstatus = realstatus;
        this.userid = userid;
    }
   
    @Id 
    @GeneratedValue( generator="paymentableGenerator")  
    @GenericGenerator(name="paymentableGenerator", strategy="uuid")  
    
    @Column(name="ID", unique=true, nullable=false, length=36)
    public String getId() {
        return this.id;
    }
    
    public void setId(String id) {
        this.id = id;
    }
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="createtime", length=19)
    public Date getCreatetime() {
        return this.createtime;
    }
    
    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }
    
    @Column(name="realname")
    public String getRealname() {
        return this.realname;
    }
    
    public void setRealname(String realname) {
        this.realname = realname;
    }
    
    @Column(name="realcode")
    public String getRealcode() {
        return this.realcode;
    }
    
    public void setRealcode(String realcode) {
        this.realcode = realcode;
    }
    
    @Column(name="realcard", length=50)
    public String getRealcard() {
        return this.realcard;
    }
    
    public void setRealcard(String realcard) {
        this.realcard = realcard;
    }
    
    @Column(name="reallogo")
    public String getReallogo() {
        return this.reallogo;
    }
    
    public void setReallogo(String reallogo) {
        this.reallogo = reallogo;
    }
    
    @Column(name="realstatus")
    public Integer getRealstatus() {
        return this.realstatus;
    }
    
    public void setRealstatus(Integer realstatus) {
        this.realstatus = realstatus;
    }
    
    @Column(name="userid", length=36)
    public String getUserid() {
        return this.userid;
    }
    
    public void setUserid(String userid) {
        this.userid = userid;
    }



    @Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}


